move response constructor to separate module, rename mod variable to modName in load method