fixing up path and sudo issues