removed global device manager. cleanup services.