debugging gem issue