added box/grid drawing utils