basic crawl framework implemented and sub-cost fixed