collision refactoring
add polyline ops