support custom envelope options
support custom envelope options