support hook: lightcore.execHook & auto register hooks directory