add genpatch command