added subscribe to server functions