add archive algorithm & action logging