added an envelope handing utility