Update service providers.
Oops. Fix logic failures.
Update app service providers
remove unsed private var
Merge pull request #159 from dongilbert/improveServiceProviders

Improve service providers