modified java class for new SyncMsg