prepare archive