writefile move from tools