clean up ruby script