read config from a file