fix errorhandling for configuration loader