updating dependencies to reflect pom
Update code to use new api