adding event api dependency