added iswitchb mode