change server according to client