remove mechanize from code