fixes for Mac

Mac needs sudo