use enum for trace flags