added support for single network distributed clustering; still need to work on code cleanup a bit