add support for pem file