udpdated commander logic