added ruby bits.