create global config class YdConfig