restructure spider.