export app, so it can be run in-process by the web server