huge refactoring of the config variables for better readability and general clarity. More work to come