fixed api calls by updating util method
Merge pull request #16 from brain-murphy/brian

fixed api calls by updating util method