stop before and start after sync with master