more fixes for sudo & dcenvironments