adding getProvider method