change ServiceManager type from singleton to regular class