added lock/unlock commands