Loggin improvemets