using merged ontology api
consolidated code