util, and a simple test