added a networking file and apply config method