bind the public API earlier