integrate docBuilder into main