add api for real

Signed-off-by: Ankorite <ankorite@gmail.com>