make splitdoc multi purpose