add an hook into methods that correspond to internet connections