added some misc. helpers