add registerCommand