improved handling of archive prompt