better sudo handling