continued refactoring to communities and nodes