added preloading script