get provider from params instead of passing it as a string