use mktemp instead of /tmp. Help with concurrency