loggin improvement