add api for check