add proxy type validation