making the gem compatiable with 3.2+