remove the res dependency of core_kernel, core and core_extended