piped directly using writestream