read and write sanities