implemented initial sync in rsb