add some locks