set removeRefs to false for client side viceroy