switching code to use values from config.ini