cleaned up the rs_sync code