re-implement handling of sudo requests