check if proxy needed before setting up trg proxy