removed debug
fixed support for multiple event listeners