subdomain working with localhost, survey model cleanup