better version with working log file
with heroku
heroku worked