various fixes
added some util files