initial commit of pattern utils