getting closer to a solution. need to go looking at how the streaming marshaller works coz it is breaking the output.