rewrite some command