rewrote subscriptions to server events