extracted out proxy initialization