add headers and pipe stuff
add redirect option to pipe
add redirect test