more error checking for PathwayService.getData