update api, fix flexing to new app id