got safe-read-to-write working