restructured ontologymanager