various grid and cv utils