implemented debugging macros