added lock/unlock