add api for server