invert linear poly; other small changes