remove call to getpeer()