fixed scripts and edit.mmm