first pass of reorganizing - util.py split up

splitting things up a bit to ease work

found several small things that weren't used