added stream support to copy command

naive implementation of stream support to the copy command.