adding some utils that we use in several projects.

I've taken to naming these variables "type".