fixed many errors with the current API. the name of the returned object is not included in the json anymore