update to run as app in app_server