JBTM-1612 copy streams by hand