random additions to the ruby library