cleaned up file-splitter