fleshed out more of the pipe header loading code