added support for ENVELOPE fetch

#314