added error handling to archive building