migrate cgutils classes for arboretum