added embed support