add ability to login/logout; better debugging tools