add marshal method for marshaller-mw