initial work on new LM solver
working on ftol