added api calls in, connected to index and launching on ios device, trail api working again