added flush methods to node,cluster,scalestructure so these objects can be reused