wip
detailed_history -> history, envelopes