added timeout to preload