update to new 6to5 api
Merge pull request #2 from sebmck/new-6to5-api

Update to new 6to5 API