gnm: some new swig interfaces added