sg work in progress with joptimizer