adding core.init to register.php