use correct lock mode