saving files to temp file inside dir so we dont step on old files