new algorithm of preloader. and small bug fixes.