add BaseConfig class and its dependencies