cleanup for config