consolidated module code