writes to interaction_ontologies more correctly