fix logging from outside app.js