Refactored local commands and config things out of rt