adapted to new genutils.runGen() syntax