basic network implementation