bug with temporary file location