added network creating, modify some for working