unused errorCallback removed.