add support for localhost testing