added archive support