read config info from file