handle unnamed docs