fixes to bindings