add check for valid proxy uri