fixed an issue where there were some lost references and runtime errors occured; added support for multiple events binding