add require in Event API