work/split files
works better now
fixed double node bug
todo