added support for ruby 2