updated to match server side salt implementation stuff.