added Z's auth code