commit and sync