ruby extension for old version.