better config exception handling