build config class