add debug logging instructions