tried added a env check to use heroku