make csplog coloring more general