fix gem and proc for heroku