instead of  modConfig::getInstance() use $this->getConfig();