client side reference checking