using username as output file name if exists
initial version of event handling