removed the requirement of providing a pem file at runtime