Is there no way to do this without patching source code?