finished network layer.
bug fix