READY add confidence api support #8

thanks @nunopolonia for pointing out

fix #8