added silentLocalize and resetLocalize to localize a certain code segment