temporary file preserves the original suffix