added a catch statement in case ontologies folder can't be found