add logging to app.js