plug more robust specification of the lock