from NLPLib to NLPMode