app working on both heroku and local mimic