hack in halGetMaf to the C interface in chains