window replace functions set to heroku