ensurring sync before work