translate python 2.7 to 3 + refactor for upcoming feature
add on the fly authentification