fix support for localhost