made config section smarter, improved formatting