added some logging statements for heroku debugging