add _split and open a new file_ functionality