wip: envelope control