grain: allow finer grain
(cherry picked from commit 5839209d9262008088809dfdaa78efd2a5f3959f)
(cherry picked from commit 00993e70345b2afae56cecf53d4e293e8f2a45af)