added feedback function
fixed event logging