multibyte read and write now work