added ruby2 support