fix module rename issue caused by removing unused import
refactor nrm port parsing and nml regeneration to prepare for nrm port object in backend to facilitate authZ