add generate script for temp mm.script