added ability to read in a config file