add doc, change cursor type from bytes to base64