cleanup + local settings