everything but sortAllLayers() is now functional