switch form localhost to server