adding again handling of new version of ruby