pmp: use tempfile to prevent clashes