refine core, move specified functions to kernel utility.