improved lock doc