housekeeping in app.js