bug fixes, logout