added throw error and open file
added scrape
blocks can be parameters now.