completely rewrote the authentication mechanism