compatible with scrapy 0.17