added mechanize handler and explicit error logging