error processing for config instead of panics