upgrade logic for use command
upgrade logic for deactivate command
upgrade logic for switch command