make afnetwork can reuse