commit before sync