improve scraping per thread, add login