minor changes. will be merged into nrc.py