refactor quantum resource to look in all potential locations for resource