started to wire up stuff in ProviderFactory. need to write some integration tests