general work on commands and roots