ported in code to create nx objects from scraperwiki implementation. built more control flow