move proxy detection to globalOptions JSON