added macros for turn on/off logs in models