fixed changes and bugs as a result on putting on a live server