network refactor

network tools package created
network refactor
network refactoring

all refactored except login
update

updated to fix sync