update map
connect to server