moved startup code into app.js