fixes for api methods
Merge pull request #27 from sphaero/master

fixes for api methods