add errorCallback each method