refactor error handling for configuration
TOML configuration file