removing serviceRegistry