writefile and nar td