hacked in a patch to enable credential support for native bindings; needs testing