[PD] self-modifying and dynamic patching