in search of the perfect ruby script