this seems to use a different method to the way we find the cloud backend. haven't looked in detail at implementations, so don't have a preference, but could they be combined?