supports class proxy.