reading the config file properly