updating to new library functions
switching to use cocoapods