stat and write ish and lookup