added error handling for when a class is not found in OQ