Instead of switching to a backend that loads, try running a function and fallback until the appropriate backend works.