create network refactoring