added errorCallback example