add Global and logout