added LEO and Medic logic