preload script example