added a lock command