updated to latest api
Merge pull request #188 from wick-ed/master

updated to latest api