used for embedding on webApp