mid simplified srp implementation