rewrite network interface part and reindent