refactoring command functions.
add permission management design base with Vault.