changed to 'registerCoreScript'