converted all singletons to require context passed in instead of init
when application starts up