both read and write now work