fixed html scraping magic