better error message on bad conf