change method to inject default providers