certificate and archive fix