half-completed changes for new community extraction algo