added some housewarming stuff (utils.c and .h)