possibly have filePath and tempFilePath to distinguish between permanent and temporary files based on storingOutput