moved all the networking part into the meshMan class