[refactoring] Better error handling in loading configs
minor change
v0.13.11