add bytesRead and bytesWritten attrs