refactored reading code to group together events, tools, etc