many optimizations and bugfixes in the new intersector code