create init function in configparser instead of using a global variable hack