got API calls working