refactored calls to utils.processResponse to handle 0, 1 or multiple results