moved start code to app.js