added check so archive actually works