tweaks, next step is build sets for array foreach instead of gross for loops
centroids 2 and command lists