switch for interface class for sessions