auto-config and config validation