fixed some issues with sudo and settings