ruby port of the adc