changed file loading system to load core files first and load the rest in the background to avoid to wait too long