patch customized debugging stuffs