fixing up modulegen and lighting