use policy to compute path