added get_maxstep to optimizer