added sudo code to the main file