add 'unattach' command for envelope mode
Merge branch '0.3.4-feature-unattach-218'