update read, change newdir -> cdir