updated to reflect moving regnmf into module.