add some api for test