fix the bug, mainConfigFile is import