fixed config method to have mutliple providers