add start scrape and end scrape and increase mem allocation