refine demo
init networking part