updates to NMF scripts