inching towards better event handling...added UUID for tmp file