fix mode and remove unneeded PATH export