added a sync before the actual snapshot