update
rewrite register command