laid foundation for new color mechanism, stripped old code