added newswitchlogging script