added a leave command