hook for replcing loaded script
rsync mode