modify config file to sync with server