reindent
use lib and save auth cookie