parsing the configuration into a map