added 2 fns to jmGen.py