made a framework for nomad sgd