support idl in Envelope query