added provider to initialize key