replaying https://github.com/ocaml/ocaml.org/pull/208/