cell: adapt to stencil ref changes