prevent proxy from being set more than once