Updated coreclass.php - still fixing url-issues