cleanup netstat parsing