change to logging and other changes for heroku cloud deployment