update CommandFactory