remove all the login and status line code