be more flexible in discovery doc path