think i handle returns now ok but nw is segfaulting when trying to read back from data