improve logging
try and prepare for deployment on heroku