protect against corrupt config file
type--wrong case