5.40

fixes for near-constant potent curves