loggin flow seems correct-ish
much progress