All api methods now take an optional errorCallback