fixes heroku functions