Revert "removed commands registar"

This reverts commit 561e0c8999423d4feed7129fc822a618ad49e759.