tmp folder hook