* make authenticator more flexible * format * format * format * format * format * fix problem * code review