sync current state