further fixes heroku compatability