added beautifulsoup functionality