simplify network handling