improved portability by use of namespace=ngm