moving file write to tmp