fixing x509 proxy transfer and env variable