first version of archive and logbook scripts