renamed instance stuff to singleton
changed some network stuff