lazy load patched scripts