added some utility stuff