fix RemoteAddr calls