cleaned up color logging code