networking done

may change to a different method, but these seems to work for the moment