cleanup settings and tasks