various TOF fixes
polygonal selection mod