add Uint8Array support