added error handling in provider supports