create a ln to file so keep processing when removed, clean up tmp file, configure tmp file dir