add logging to track down null ids