add archive event handler