why  is this here anyways? its done in getProxyDefinition again.