onrawdata allows passing data with raw buffers