fixed bug related to different ips for different services