updated preloader. fixed minor bugs