bug fixes, memory opti, surfaces plots, chan sort