fix PW auth and some linting.