refactored n-bytes-copied into do bindings in copy-port