Login moved over
Logout moved
Refactor promote
protect
push refactored. exit on all errors