added some of my misc utils from around the place