added compatibility for multiple proxy servers