you should either remove the debug mode from the extension, or support it in the new implementation