add logging and repair native method bindings