debug log out function