updated code to support in-house proxy renewal