fixed typing
fixes to processing
ndc refactor