rehans code initial sync