better logging
more careful selection of which provider to use