bug fixes and signout