support to  log out refs closes #6