adding console.log in case there is an error in loading the event.