flip around path extractor monad to fix odd bug