fixes difference between api 1.0 and 1.1
Merge pull request #505 from dazzyd/api-1.1

fixes difference between api 1.0 and 1.1