add api version
fix url
changed error handling
0.0.8