dispatch and app error handling updates and tests