more goofing around, add some debug logging macros