integrating ruby script