added commander code