Add self._host in CMD and delete global var host