somewhat working ocamlwrap, finally