remove hardcode localhost stuff