changed auth settings and code