two mode support: Cluster and Session