cleanup some config