introduce archive mode to replace "recursive" mode