avoid massive locks