fixed splitting, some fixes to test-suite, managescript still TODO