added check for beautifulsoup import error