subst docdir, convert requires(hint)