config split into formatting functions and kemap