first part on localsaltmode