added generic extension method for retrieving proxies