clean up and syncing