changed order to make most commands run as root