integrating mechanize script