added auth code