refactor crawler class