call registerCommands