allowing user to supply project root and doc root