converted all (Network.isServer) to (!Network.isClient) and vice versa