change instances of Localhost to code