change tracelevel programatically