trying to do a proper module org, following Optim.jl
tests pass after mod. reorg