add new parameters, improve paramater saving, fix genmulti