networking almost done, only one bug left to fix