moved main function to class Crawler