added api for client