change check method to async.