adding heroku urls and rewriting modules