various debugs and refinements, such as preventing delete of object sort field