works in production not on heroku