many changes to api and angular embed