create a util package

move some classes and methods into a util package