[sync] change reading data from local file to a server endpoint