adds updater to inject script to prevent race condition