endpoint events retuen only events
rewrite return hash that return index