fix support for multiple certs