added injection of servicemanager