Authenticator as embeded framework
refactor