adding modified gem lock