updating preload script