added code domain refresh feature