modified some code, add sync current location to server