up-to-date check, cleanup