this is a revision to the original auth_example