change the way we get remote addr