order add error checking for split, could fail on files without a ext