move Hcat util to core package