modify macros for logs