network: rewrite
use: some cleaning.