hook sync