fixed copy stream implementations
Merge pull request #40 from zelgerj/master

fixed copy stream implementations