mechanize functional