added setting to enable/disabled generation of toggle script