console logs for heroku
better error handling