[app.js] updated w/logging