add -m option for limit maxStep
add -g option for limit generation