Update thesystem  corefile loader.php so that we can initialize the constructor of models while loading them