trying sync versions of read and write. ffs this better work