add some api for backend