support passing a block to ns to set the policy for fetching the default namespace