handle doc without a type property