added clear_sync