added getdata api support