added union of state at the end of a composition. This is bad if a piprocess entity spawns it's own piprocess entities. then then there might be some incorrect variable substitutions. but so long as the composition only happens on the highest level (or all variable names are unique), there shouldn't  be any problems. For now, this is nice to for visualization.