patch for debug