more spilt fixes and writeNode