put trace logs in conditionals
performance tuning