performance fixes in accept/getpeer