tie coloring, ref results upload fix, cleanup and speedup