reporting: change way to create temporary file