added all_events query method