sync, cleanup