added hack to get external ip