make gem 2.1.2 compatible