updated dsp to include envelopes