add subscription for server and client