reads configuration file