added proxy port checking
fixing things