fixed an issue with Versioning + added some additional code for in the core.php