trying to put nw through so need to handle return statements and simple barrier handling is broken