changed an api call to avoid CDH3 deprecations