minor sm_gen cmd fixes