refactored -- ganglia working but without gmetric