added curve orient
idea for scaling optimisation