split up function to make testing easier
added all_events to ipython autocomplete