add stub lock