cleanup of settings