refactoring netconnection centric approach