adding auto-archive debug