add mogenerator script