rebuilt nml.py using correct generateDS