add L support for patching