improve ruby support