use metadata to decide whether to check for autproxying rather than just try/catch