minor changes; removed unecessary sudo calls