util: first pass of utilities module