maybe use a random file name (or use the process id) to avoid conflicts