added basic split-merge functionality
more work