change API pedantic_read() and pedantic_write()