add TRACE, CTRACE macros
revamp CTRACE