this is kinda confusing to read, can you store errorCallback in a similar way to successCallback?