add debug mixin