put initialization in sync_all callback