apply is a 2 part operation because vars need to be reset each time a website is applied