scripted simpleManipulator plugin displaing mesh

I have a simpleManipulator plugin which looks like this:

plugin simpleManipulator myManipulator
...
(
...

on updateGizmos do(
this.clearGizmos()
m=(createInstance plane length:length width:width).mesh
this.addGizmoMesh m 0 [0,1,0] (colorMan.getColor #manipulatorsSelected)
)
)

It works fine but I want to replace the plane by a diferent mesh. I have arays for vertices v and faces f but just replacing

plane length:length width:width

by

mesh verts:v faces:f

doesn't work.