Refactor defer
Add tmp dir
Refine gofu