split doc to files