recovering from possible panic in google's collate package