more templating for localhost removal