Updated sorcery so it works with heroku