work again with older versions of ruby, rails