set up bindings as in #971