replace fannj by our own bindings