added stream support to copy command