now reading out of config file correctly