api: minor fixes