doctest fix and safe make