use pid for tmp file patterns