improve RootCommands class