began refactoring to avoid dispatchEvents and amalgamate network traffic