header include order
Factor out transaction stream handling