removed dependency on beautifulsoup