update to latest API.
Merge pull request #1 from bordoley/master

update to latest API.