improve ruby client