curved shaft shortening work in progress
fixed merge conflict
working for arbitrary trails