add aditional debug messages to app.js