add jtr patch for ref implementation