commented code, moved app.log() to utils module