add checkresult to api file