adds event.stopPropagation() support