moved network part to separate directory