added support for block copy as described in issue #13