now actually reads a config file