added a lock to send command to one ncs not all