SB switching ON/OFF added
bug fixed in cg building