add new function fromServerJSON, for initial syncing