coded heuristics for provider choice: still to be fixed