allow sm to be in an embedded frame