fix doctest&hlint complaints