NDS extractor and builder