add api for test