added gem lock