runtime: simplify the public API.