removed debugging code from getevents