adding sudo swift code for mdproxy application