start work on accommodating for envelope params in samples