code to convert clusterStack into new cMonkey environment structure