working on mechanize script