preloader and bugfixes