improved stencil scheduling support